<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><fmt:message key="auth.title" /></title>
		<link href="styles/css.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr align="center">
				<td valign="bottom" class="blue12">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td height="32" class="blue12">
								<fmt:message key="auth.menu" />
							</td>
						</tr>
					</table>
				</td>
				<td width="4" align="left">
					<img src="images/list-gx.gif" width="4" height="40" />
				</td>
				<td valign="bottom" class="blue12">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td height="32" class="blue12">
								<fmt:message key="auth.function" />
							</td>
						</tr>
					</table>
				</td>
				<c:forEach var="handleType" items="${applicationScope.handleTypes}">
					<td width="4" align="left">
						<img src="images/list-gx.gif" width="4" height="40" />
					</td>
					<td valign="bottom" class="blue12">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="32" class="blue12">
									<c:out value="${handleType.name}"/>
								</td>
							</tr>
						</table>
					</td>
				</c:forEach>
			</tr>
			<c:forEach var="menu" items="${applicationScope.handlesTree}" varStatus="menuStatus">
				<tr align="center">
					<td class="line_xuxian" align="left">
						<img border="0" src="images/open.gif" />
						<c:out value="${menu.name}"/>
					</td>
					<td class="line_xuxian">
						&nbsp;
					</td>
					<td class="line_xuxian">
						&nbsp;
					</td>
					<c:forEach var="handleType" items="${applicationScope.handleTypes}">
						<td class="line_xuxian">
							&nbsp;
						</td>
						<td class="line_xuxian">
							&nbsp;
						</td>
					</c:forEach>
				</tr>
				<c:if test="${menu.childs != null}">
					<c:forEach var="function" items="${menu.childs}" varStatus="functionStatus">
						<tr align="center">
							<td class="line_xuxian">
								&nbsp;
							</td>
							<td class="line_xuxian">
								&nbsp;
							</td>
							<td class="line_xuxian" align="left">
								<img border="0" src="images/ico_blk.gif" />
								<c:out value="${function.name}"/>
							</td>
							<c:forEach var="handle" items="${function.childs}">
								<td class="line_xuxian">
									&nbsp;
								</td>
								<td id="handle<c:out value="${handle.id}"/>Back" class="line_xuxian">
									<c:if test="${handle.support}">
										<c:out value="${handle.id}"/>
									</c:if>
									<c:if test="${! handle.support}">
										<img src="images/nonsupport.gif" border="0" />
									</c:if>
								</td>
							</c:forEach>
						</tr>
					</c:forEach>
				</c:if>
			</c:forEach>
		</table>
	</body>
</html>
